package com.gdk.subject.application.convert;

import com.gdk.subject.application.dto.SubjectCategoryDTO;
import com.gdk.subject.domain.entity.SubjectCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Gudong~
 * @create 2024-10-21 16:01
 */

@Mapper
public interface SubjectCategoryDTOConverter {

    SubjectCategoryDTOConverter INSTANCE = Mappers.getMapper(SubjectCategoryDTOConverter.class);

    SubjectCategoryBO convertDTOToCategoryBO(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategoryDTO> convertBOToCategoryDTOList(List<SubjectCategoryBO> subjectCategoryBOList);

}
